package com.yanqu.road.server.cmd.cross.tradewar;

import com.yanqu.road.pb.tradewaractivity.TradeWarActivityProto;
import com.yanqu.road.server.cmd.base.AbstractCommand;
import com.yanqu.road.server.command.Cmd;
import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.message.YanQuMessage;
import com.yanqu.road.server.protocol.Protocol;

@Cmd(code = Protocol.S_CROSS_TRADE_WAR_CROSS_MEMBER_CONDITION_NOTIFY, desc = "跨服商战商会成员贡献值通知")
public class CrossTradeWarMemberConditionDataNotifyCmd extends AbstractCommand {

	@Override
	public boolean parseData(YanQuMessage packet) throws Exception {
		return true;
	}

	@Override
	public void execute(GamePlayer player, YanQuMessage packet) throws Exception {
		TradeWarActivityProto.TradeWarActivityConditionUnionMemberDataRespMsg reqMsg = TradeWarActivityProto.TradeWarActivityConditionUnionMemberDataRespMsg.parseFrom(packet.getBytes());

		player.sendPacket(Protocol.U_TRADE_WAR_ACTIVITY_MEMBER_CONDITION_DATA, reqMsg.toBuilder());
	}

	@Override
	public void sendData(GamePlayer player) {

	}

}
